<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{
            margin: 0;padding: 0;
        }
        section{
            max-width: 1080px;
            height: auto;
            border: 1px solid #000;
            margin: 100px auto;
            display: flex;
            flex-wrap: wrap;
            /* justify-content: space-around */
        }
        div{
            width: 25%;
            height: 320px;
            background: #ccc
        }
        @media all and (max-width:180px){
            div{
                width: 100%
            }
        }
        @media all and (min-width:181px) and (max-width:360px){
            div{
                width: 50%
            }
        }
        @media all and (min-width:361px) and (max-width:720px){
            div{
                width:33%
            }
        }
        @media all and (min-width:721px){
            div{
                width:25%
            }
        }
    </style>
</head>
<body>
    <section>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
        <div><img src="images/kk.gif" alt=""></div>
    </section>
</body>
</html>